Skip to content

fix: Fixes issue with patternfly-starter seed is not building.#34

Merged
jpuzz0 merged 2 commits intopatternfly:mainfrom
dlabaj:pf-seed-fix
Apr 29, 2026
Merged

fix: Fixes issue with patternfly-starter seed is not building.#34
jpuzz0 merged 2 commits intopatternfly:mainfrom
dlabaj:pf-seed-fix

Conversation

@dlabaj
Copy link
Copy Markdown
Contributor

@dlabaj dlabaj commented Apr 21, 2026

This fixes the bug where the PatternFly seed (starter selection when creating a project) does not build. Closes jira issue #4007

Summary by CodeRabbit

  • Chores
    • Starter template now uses npm as the default package manager instead of yarn.
    • Git clone behavior improved to perform a single-branch checkout of the main branch and consistently include checkout options when cloning.

@dlabaj dlabaj requested a review from jpuzz0 April 21, 2026 20:19
@dlabaj dlabaj self-assigned this Apr 21, 2026
@dlabaj dlabaj added the bug Something isn't working label Apr 21, 2026
@github-project-automation github-project-automation Bot moved this to Needs triage in PatternFly Issues Apr 21, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 21, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 44d447b8-60b1-44ec-ae20-ebca345db248

📥 Commits

Reviewing files that changed from the base of the PR and between 2912c7e and db02f1e.

📒 Files selected for processing (1)
  • src/__tests__/create.test.ts

Walkthrough

Updated starter template in src/templates.ts to add git checkout options (--single-branch --branch main) and change packageManager from yarn to npm. Tests in src/__tests__/create.test.ts were updated to expect starter.options included in git clone args and to expect npm for the install step.

Changes

Cohort / File(s) Summary
Template Configuration
src/templates.ts
Modified the starter template: added git checkout options --single-branch --branch main and changed packageManager from yarn to npm.
Create Command Tests
src/__tests__/create.test.ts
Updated test expectations so git clone argument arrays include starter!.options (default []) before the repo URL for both HTTPS and SSH, and changed expected install command from yarn to npm.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title references fixing an issue with the patternfly-starter seed not building, which aligns with the PR objectives describing a bug fix for the PatternFly seed. However, the changes show specific modifications to template options and package manager configuration, which the title does not capture.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
Review rate limit: 0/1 reviews remaining, refill in 60 minutes.

Comment @coderabbitai help to get the list of available commands and usage tips.

@dlabaj dlabaj changed the base branch from pf-seed-fix to main April 21, 2026 20:20
fix: Fixes issue with patternfly-startarter seed not building.
Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/templates.ts`:
- Around line 22-23: The test failure is caused by the starter template
switching to packageManager: "npm"; update the test in
src/__tests__/create.test.ts that asserts the runtime installer, so that the
assertion for runCreate(projectDir, 'starter') expects execa to be invoked with
'npm' instead of 'yarn' (or alternatively change the test to call a yarn-based
template like 'compass-starter'/'nextjs-starter'); modify the expectation that
inspects execa calls in the “uses template packageManager and runs install” test
to match the new packageManager value for the 'starter' template.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 83d75294-8f31-4651-80aa-cd4ec1c3079a

📥 Commits

Reviewing files that changed from the base of the PR and between 3d0a15c and 2912c7e.

📒 Files selected for processing (1)
  • src/templates.ts

Comment thread src/templates.ts
@jpuzz0 jpuzz0 merged commit 2762694 into patternfly:main Apr 29, 2026
2 checks passed
@github-project-automation github-project-automation Bot moved this from Needs triage to Done in PatternFly Issues Apr 29, 2026
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 1.2.10 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working released

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants